//
//  SendGoodsDatasCell.m
//  NtoccShipper
//
//  Created by mac on 2019/11/20.
//  Copyright © 2019 zhuchongjin. All rights reserved.
//

#import "SendGoodsDatasCell.h"
@interface SendGoodsDatasCell()
@property (nonatomic,strong) CJLabel *labRecicer;
@property (nonatomic,strong) CJLabel *labGoodsType;
@property (nonatomic,strong) CJLabel *labWeight;
@property (nonatomic,strong) CJLabel *labTime;
@end

@implementation SendGoodsDatasCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setCellInfoWithModel:(SourceListModel *)model{
    
    self.labRecicer.text = model.shipperName;
    self.labGoodsType.text = model.coalTypeName;
    self.labWeight.text = CJStringWithFormat(@"%@%@",@(model.weight).cj_description ,[CJControl getThreeUnaryValueStr:model.coalUnitName]);
    self.labTime.text = model.gmtCreated;
}
- (void)setCellInfoWithConsigneeModel:(SourcesOrderListModel *)model{
        self.labRecicer.text = model.consigneeName;
        self.labGoodsType.text = model.coalTypeName;
        self.labWeight.text = CJStringWithFormat(@"%@%@",@(model.unloadQuantity).cj_description,[CJControl getThreeUnaryValueStr:model.coalUnitName]);
        self.labTime.text = model.signTime;
}

@end


